/**
 * Created by Administrator on 2015/9/13.
 */
function fordetail(){
    $(".bg-black").show();
    $(".modal").show();
}

function closemodal(){
    $(".bg-black").hide();
    $(".modal").hide();
}
function comment(){
    $(".bg-black").show();
    $(".comment-modal").show();
}

function showdropdown(){
    $(".bg-white").show();
    $(".am-dropdown-content").slideDown();
    $(".present-li").addClass("present-active-li");
}

function closewhite(){
    $(".bg-white").hide();
    $(".am-dropdown-content").slideUp();
    $(".present-li").removeClass("present-active-li");
}

function fullscreen(){
    elem=document.body;
    if(elem.webkitRequestFullScreen){
        elem.webkitRequestFullScreen();
        $(".fullscreen").hide();
        $(".exitfullscreen").show();
    }else if(elem.mozRequestFullScreen){
        elem.mozRequestFullScreen();
        $(".fullscreen").hide();
        $(".exitfullscreen").show();
    }else if(elem.requestFullScreen){
        elem.requestFullscreen();
        $(".fullscreen").hide();
        $(".exitfullscreen").show();
    }else{
        alert("浏览器不支持全屏");
    }
}
function exitFullscreen(){
    var elem=document;
    if(elem.webkitCancelFullScreen){
        elem.webkitCancelFullScreen();
        $(".fullscreen").show();
        $(".exitfullscreen").hide();
    }else if(elem.mozCancelFullScreen){
        elem.mozCancelFullScreen();
        $(".fullscreen").show();
        $(".exitfullscreen").hide();
    }else if(elem.cancelFullScreen){
        elem.cancelFullScreen();
        $(".fullscreen").show();
        $(".exitfullscreen").hide();
    }else if(elem.exitFullscreen){
        elem.exitFullscreen();
        $(".fullscreen").show();
        $(".exitfullscreen").hide();
    }else{
        alert("浏览器不支持全屏");
    }
}


